package cn.edu.ctbu.datajpa.domain.repository;

import cn.edu.ctbu.datajpa.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends JpaRepository<Student,Integer> {

    //按名字查询
    //@param sname
    //@return
    List<Student> findBynameLike(String name);

    Student findByName(String name);

    public List<Student> findByNoAndPassword(String no,String password);

}
